package com.mzx.javase.集合;

import java.util.LinkedHashMap;

/**
 * 类描述：LinkedHashMap类常用方法
 *
 * @ClassName LinkedHashMapTest01
 * @Description TODO
 * @Author 69417
 * @Date 2022/7/2 17:47
 * @Version 1.0
 */
public class LinkedHashMapTest01 {
    public static void main(String[] args) {
        LinkedHashMap<String, String> map1 = new LinkedHashMap<>();
        map1.put("hello", "kitty");
        map1.put("name", "张三");

        LinkedHashMap<String, String> map2 = new LinkedHashMap<>(map1);
        map2.remove("hello");
        System.out.println(map2);
    }
}
